package com.jsmile.cloud.msgcenter.pay.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author 龚亮
 * @version 1.0
 * @desc 为了薪资破万，还是睡一会儿吧...!
 * @date 2020年06月07日 11:19:01
 */
@ApiModel
@Data
@TableName("t_ac_pay_info")
public class PayInfo extends Model<PayInfo> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @ApiModelProperty(value = "租户id")
    private Long tenantId;
    @ApiModelProperty(value = "支付appid")
    private String appId;
    @ApiModelProperty(value = "授权密钥")
    private String appSecret;
    @ApiModelProperty(value = "商户号")
    private String mchId;
    @ApiModelProperty(value = "商户密钥")
    private String mchSecret;
    @ApiModelProperty(value = "支付方式1微信小程序支付2微信h5支付3微信app支付 10支付宝h5支付")
    private Integer payType;
    @ApiModelProperty(value = "证书内容")
    private byte[] certData;
    @ApiModelProperty(value = "签名算法类型")
    private String signType;
    @ApiModelProperty(value = "证书名称")
    private String certName;
    @ApiModelProperty(value = "公钥")
    private String publicKey;
    @ApiModelProperty(value = "私钥")
    private String privateKey;
    @ApiModelProperty(value = "第三方支付公钥")
    private String payPublicKey;
    @ApiModelProperty(value = "支付回调地址")
    private String notifyUrl;
    @ApiModelProperty(value = "支付成功跳转地址")
    private String returnUrl;
    @ApiModelProperty(value = "退款回调地址")
    private String refundNotifyUrl;
    @ApiModelProperty(value = "是否启用 0-不可用  1-启用")
    @TableLogic
    private Integer delFlag;
    @ApiModelProperty(value = "描述")
    private String remark;
    @ApiModelProperty(value = "创建时间")
    private java.util.Date createTime;
    @ApiModelProperty(value = "更新时间")
    private java.util.Date updateTime;
    @ApiModelProperty(value = "平台id")
    private Integer platformId;
    @ApiModelProperty(value = "业务id")
    private Integer bizCode;
    @ApiModelProperty(value = "接口加密密钥")
    private String aesKey;
    @ApiModelProperty(value = "授权token")
    private String authToken;
    @ApiModelProperty(value = "店铺id")
    private Long shopId;
}
